import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {TemplateExampleComponent} from './template-example.component';

const routes: Routes = [
    {path: '', component: TemplateExampleComponent,
        children: [
            {path: '', redirectTo: 'tem-style1', pathMatch: 'full'},
            {path: 'tem-style1', loadChildren: './tem-style1/tem-style1.module#TemStyle1Module'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class TemplateExampleRoutingModule {
}
